package model;

import android.util.Log;

public class SubmittedData {
	private String ASSOCIATION = "0";
	private String AUCTION_PERIOD = "";
	private String BASE_PRICE = "";
	private String BUY_NOW_PRICE = "";
	private String CAMCORDER_MODEL = "0";
	private String CITY = "0";
	private String COUNTRY_ID = "";
	private String DESCRIPTION = "";
	private String ITEM_ID = "";
	private String JOURNALIST_ID = "0";
	private String SALE_TYPE = "";
	private int SELLING;
	private String TAGS = "";
	private String TITLE = "";
	private static String TAG = SubmittedData.class.getSimpleName();

	public String getAssociation() {
		return ASSOCIATION;
	}

	public String getAuctionPeriod() {
		return AUCTION_PERIOD;
	}

	public String getBasePrice() {
		return BASE_PRICE;
	}

	public String getBuyNowPrice() {
		return BUY_NOW_PRICE;
	}

	public String getCamcorderModel() {
		return CAMCORDER_MODEL;
	}

	public String getCity() {
		return CITY;
	}

	public String getCountryID() {
		return COUNTRY_ID;
	}

	public String getDescription() {
		return DESCRIPTION;
	}

	public String getItemID() {
		return ITEM_ID;
	}

	public String getJournalistID() {
		return JOURNALIST_ID;
	}

	public String getSaleType() {
		return SALE_TYPE;
	}

	public int getSelling() {
		return SELLING;
	}

	public String getTags() {
		return TAGS;
	}

	public String getTitle() {
		return TITLE;
	}

	public void setAssociation(String Association) {
		ASSOCIATION = Association;
	}

	public void setAuctionPeriod(String AuctionPeriod) {
		AUCTION_PERIOD = AuctionPeriod;
	}

	public void setBasePrice(String Price) {
		BASE_PRICE = Price;
	}

	public void setBuyNowPrice(String Price) {
		BUY_NOW_PRICE = Price;
	}

	public void setCamcorderModel(String CamcorderModel) {
		CAMCORDER_MODEL = CamcorderModel;
	}

	public void setCity(String City) {
		CITY = City;
	}

	public void setCountryID(String CountryID) {
		COUNTRY_ID = CountryID;
	}

	public void setDescription(String Description) {
		DESCRIPTION = Description;
	}

	public void setItemID(String ItemID) {
		ITEM_ID = ItemID;
	}

	public void setJournalistID(String JournalistID) {
		JOURNALIST_ID = JournalistID;
	}

	public void setSaleType(String SaleType) {
		SALE_TYPE = SaleType;
	}

	public void setSelling(int Selling) {
		SELLING = Selling;
	}

	public void setTags(String Tags) {
		if (Tags == null) {
			/**
			 * If tags = null, need reset
			 */
			TAGS = "";
		} else if (!TAGS.equals(""))
			TAGS = TAGS + "," + Tags;
		else
			TAGS = Tags;
		
		Log.i(TAG, "setTags " + TAGS);
	}

	public void setTitle(String Title) {
		TITLE = Title;
	}
}
